package com.atguigu.transform;

import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @author wky
 * @create 2021-07-13-19:26
 */
public class Transform_Shuffle {
    public static void main(String[] args) {
        StreamExecutionEnvironment senv = StreamExecutionEnvironment.getExecutionEnvironment();
        DataStreamSource<String> streamSource = senv.readTextFile("src/input/word.txt");
        streamSource.shuffle().print();
        try {
            senv.execute();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
